set(LIBHELLO_SRC hello.c)


add_library(hello_shared SHARED ${LIBHELLO_SRC})
set_target_properties(
    hello_shared PROPERTIES 
    OUTPUT_NAME "hello"
)

add_library(hello_static STATIC ${LIBHELLO_SRC})
set_target_properties(hello_static PROPERTIES OUTPUT_NAME "hello")

install(
    TARGETS hello_shared hello_static 
    LIBRARY DESTINATION lib 
    ARCHIVE DESTINATION lib
)
install(
    FILES hello.h
    DESTINATION include/hello
)